<template>
  <div>
    <el-tag v-if="level === '0'">一级</el-tag>
    <el-tag type="success" v-else-if="level === '1'">二级</el-tag>
    <el-tag type="warning" v-else-if="level === '2'">三级</el-tag>
  </div>
</template>

<script>
export default {
  props: {
    level: {
      type: [String, Number],
      default: 0
    }
  }

}
</script>

<style lang="scss" scoped>

</style>